<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
        
        
        $news=M('news')->limit(4)->select();
        $this->assign('news',$news);
       
        //dump($news);
        //goods
        $goods=M('goods')->select();
        $this->assign('goods',$goods);
        $this->display('index');
    }

}